package com.ruben.simplescaffold.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruben.simplescaffold.enumration.GenderEnum;
import com.ruben.simplescaffold.pojo.common.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 用户
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/7/30 10:22
 */
@Data
@ToString
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserDetail extends BaseEntity<UserDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private Long mobile;

    /**
     * 性别
     */
    private GenderEnum gender;

    /**
     * 父编号
     */
    @TableField(exist = false)
    private Long parentId;


}
